package io.renren.modules.vipuser.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;


/**
 * 
 * 
 * @author 
 * @email 
 * @date 2018-10-25 13:01:06
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class VipinfosEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//会员信息id
	private Integer vipinfoid;
	//用户ID
	@NotBlank(message="用户ID不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String userinfoid;
	//会员等级
	private String vipgrade;
	//会员描述
	private String description;
	//会员申请价格
	@NotNull(message="会员申请价格不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private BigDecimal priceinvip;
	//创建时间
	private Date createtime;
	//更新时间
	private Date updatetime;
	//过期时间
	@NotNull(message="过期时间不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Date expirationtime;
	//处理人
	private Long dealuser;
	//软删除
	@NotNull(message="软删除不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Integer isdel;
	//审核状态;默认0 ，0待审核,1审核通过,2审核失败
	@NotNull(message="审核状态不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Integer auditstatus;
	//审核状态时间
	private Date auditdate;
	//不通过原因
	private String cannotpassreason;

	/**
	 * 设置：会员信息id
	 */
	public void setVipinfoid(Integer vipinfoid) {
		this.vipinfoid = vipinfoid;
	}
	/**
	 * 获取：会员信息id
	 */
	public Integer getVipinfoid() {
		return vipinfoid;
	}
	/**
	 * 设置：外键，用户信息表ID varchar 40
	 */
	public void setUserinfoid(String userinfoid) {
		this.userinfoid = userinfoid;
	}
	/**
	 * 获取：外键，用户信息表ID varchar 40
	 */
	public String getUserinfoid() {
		return userinfoid;
	}
	/**
	 * 设置：会员等级
	 */
	public void setVipgrade(String vipgrade) {
		this.vipgrade = vipgrade;
	}
	/**
	 * 获取：会员等级
	 */
	public String getVipgrade() {
		return vipgrade;
	}
	/**
	 * 设置：会员描述
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * 获取：会员描述
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * 设置：会员申请价格
	 */
	public void setPriceinvip(BigDecimal priceinvip) {
		this.priceinvip = priceinvip;
	}
	/**
	 * 获取：会员申请价格
	 */
	public BigDecimal getPriceinvip() {
		return priceinvip;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreatetime() {
		return createtime;
	}
	/**
	 * 设置：更新时间
	 */
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	/**
	 * 获取：更新时间
	 */
	public Date getUpdatetime() {
		return updatetime;
	}
	/**
	 * 设置：过期时间
	 */
	public void setExpirationtime(Date expirationtime) {
		this.expirationtime = expirationtime;
	}
	/**
	 * 获取：过期时间
	 */
	public Date getExpirationtime() {
		return expirationtime;
	}
	/**
	 * 设置：处理人
	 */
	public void setDealuser(Long dealuser) {
		this.dealuser = dealuser;
	}
	/**
	 * 获取：处理人
	 */
	public Long getDealuser() {
		return dealuser;
	}
	/**
	 * 设置：软删除
	 */
	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}
	/**
	 * 获取：软删除
	 */
	public Integer getIsdel() {
		return isdel;
	}
	/**
	 * 设置：审核状态;默认0 ，0待审核,1审核通过,2审核失败
	 */
	public void setAuditstatus(Integer auditstatus) {
		this.auditstatus = auditstatus;
	}
	/**
	 * 获取：审核状态;默认0 ，0待审核,1审核通过,2审核失败
	 */
	public Integer getAuditstatus() {
		return auditstatus;
	}
	/**
	 * 设置：审核状态时间
	 */
	public void setAuditdate(Date auditdate) {
		this.auditdate = auditdate;
	}
	/**
	 * 获取：审核状态时间
	 */
	public Date getAuditdate() {
		return auditdate;
	}
	/**
	 * 设置：不通过原因
	 */
	public void setCannotpassreason(String cannotpassreason) {
		this.cannotpassreason = cannotpassreason;
	}
	/**
	 * 获取：不通过原因
	 */
	public String getCannotpassreason() {
		return cannotpassreason;
	}
}
